import request from "@/utils/request"
export default {
    //获取商品详情
    getDetails(data={}){
        return request({
            url: "/api/product/getDetails",
            method: "POST",
            data: data
        })
    },

    //获取商品图片信息
    getDetailsPicture(data={}){
        return request({
            url: "/api/product/getDetailsPicture",
            method: "POST",
            data: data
        })
    },

    //添加收藏
    addCollect(data={}){
        return request({
            url:"/api/user/collect/addCollect",
            method: "POST",
            data: data
        })
    },
    
    //添加购物车
    addShoppingCart(data={}){
        return request({
            url:"/api/user/shoppingCart/addShoppingCart",
            method: "POST",
            data: data
        })
    },


}
